package com.zmcn.msg.bean.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 上传消息批次信息实体
 * 
 * @author <b>欧建东<br/>
 *         Email:oyjd@163.com</b>
 * @version 1.0
 */
@Entity
@Table(name = "T_MSG_GROUP")
public class MsgGroup implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 8081008215072837524L;

	/**
	 * 消息批次ID
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "BATCH_ID", length = 32)
	private String batchId;

	/**
	 * 上传者
	 */
	@Column(name = "UPLOADOR", length = 32)
	private String uploador;

	/**
	 * 上传时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPLOAD_TIME")
	private Date uploadTime;

	/**
	 * 上传条数
	 */
	@Column(name = "UPLOAD_NUM")
	private int uploadNum;

	/**
	 * 接受者
	 */
	@Column(name = "RECEIVER", length = 32)
	private String receiver;

	/**
	 * 状态 0-正常 1-删除
	 */
	@Column(name = "STATUS")
	private int status;

	public String getBatchId() {
		return batchId;
	}

	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}

	public String getUploador() {
		return uploador;
	}

	public void setUploador(String uploador) {
		this.uploador = uploador;
	}

	public Date getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

	public int getUploadNum() {
		return uploadNum;
	}

	public void setUploadNum(int uploadNum) {
		this.uploadNum = uploadNum;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}